<!--
 * @Description: 隧道详情
 * @Author: 0001100986/LiuShuai
 * @Date: 2021-07-26 16:47:46
 * @LastEditTime: 2021-10-26 09:48:08
 * @LastEditors: 0001100986/LiuShuai
-->
<template>
  <table class="info-box">
    <thead>
      <tr>
        <th class="title"></th>
        <th>站点</th>
        <th>设备</th>
        <th>端口</th>
        <th>地址</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="title">源端</td>
        <td>{{row.startSite.sitename}}</td>
        <td>{{row.startNe.userlabel}}</td>
        <td>{{row.startWan.toUpperCase()}}</td>
        <td>{{row.extAttrs.startNeIpsecIp}}</td>
      </tr>
      <tr>
        <td class="title">目的端</td>
        <td>{{row.endSite.sitename}}</td>
        <td>{{row.endNe.userlabel}}</td>
        <td>{{row.endWan.toUpperCase()}}</td>
        <td>{{row.extAttrs.endNeIpsecIp}}</td>
      </tr>
    </tbody>
  </table>
</template>

<script>
export default {
  props: ['row'],
  data () {
    return {};
  }
};
</script>

<style lang="scss" scoped>
.info-box {
  width: 100%;
  border-top: 1px solid #ebeef5;
  border-left: 1px solid #ebeef5;
  .title {
    width: 100px;
    text-align: center;
    background: #f8f8f9 !important;
  }
  th {
    text-align: center;
    color: #606266;
    background: #f8f8f9 !important;
  }
  tr {
    td {
      padding: 10px;
      &:nth-child(2) {
        width: 25%;
      }
      &:nth-child(3) {
        width: 25%;
      }
      &:nth-child(4) {
        width: 25%;
        text-align: center;
      }
      &:last-child {
        width: 15%;
        text-align: center;
      }
    }
  }
}
</style>